<?php
/**
 * @package WKernel
 */
require_once 'WKernel/Data/Serializer/Int.php';
require_once 'WKernel/Markup/Document.php';
class WK_Data_Serializer_Json implements WK_Data_Serializer_Int {
	private $data;
	
	private $str;
	
	private $curr_level;
	private $parents = array();
	
	public function __construct(WK_Data_Map $data){
		$this->data = $data;
	}
	
	/**
	 * (non-PHPdoc)
	 * @see WKernel/Data/Serializer/WK_Data_Serializer_Int::serialize()
	 */
	public function serialize($omit_declaration = true){		
		return json_encode($this->data->__toArray());
	}	
}